package com.vs.wms.common;

import java.io.IOException;
import java.io.Reader;

import com.ibatis.common.resources.Resources;
import com.ibatis.sqlmap.client.SqlMapClient;
import com.ibatis.sqlmap.client.SqlMapClientBuilder;

public class CommonDao {
	
	public static SqlMapClient sqlMap;

	static {
		
		Reader reader = null;
		
		try {
			
			reader = Resources.getResourceAsReader ("sql-map-config.xml");
			
			sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
			
		} catch (IOException e) {
			
			sqlMap = null;
			
			e.printStackTrace();
		}
	}
}